function getFirstNameAndName(model){
	var string=model.firstName;
	if (isEmpty(model.maritalName)){
		string+=" "+model.patronymicName;
	}else{
		string+=" "+model.maritalName;
	}
	return string;
}

function isEmpty(string){
	return (typeof(string)=='undefined' || string=='' || string==null)
}